package calculator.operator;


public class AddingOperator implements Operator {

    @Override
    public double doCal(double num1, double num2) {
        return fix(num1).add(fix(num2)).doubleValue();
    }

    @Override
    public int getPriority() {
        return Priority.PRIORITY_LOWER;
    }

    @Override
    public boolean support(char c) {
        return c == '+';
    }

    @Override
    public String toString() {
        return "+";
    }
}
